package jjn.effective_java.chapter6.item35;

/**
 * @author Jiang Jining
 * @since 2023-04-27 22:31
 */
public class EnsembleTest {
    public static void main(String[] args) {
        Ensemble[] values = Ensemble.values();
        for (Ensemble ensemble : values) {
            System.out.println("ensemble = " + ensemble + " , numberOfMusicians = " + ensemble.numberOfMusicians());
        }
        System.out.println();
        EnsembleV2[] values2 = EnsembleV2.values();
        for (EnsembleV2 ensemble : values2) {
            System.out.println("ensemble = " + ensemble + " , numberOfMusicians = " + ensemble.numberOfMusicians());
        }
    }
}
